import java.sql.Array;

public class test {
    public static void main(String[] args) {
        int[] arr = new int[100];
        for (int i = 0; i < 100; i++) {
            arr[i] = i + 1;
        }
        double ret = avg(arr);
        System.out.println(ret);
    }

    public static double avg(int[] arr) {
        int sum = 0;
        for (int x : arr) {
            sum += x;
        }
        return sum * 1.0/ arr.length;
    }

    public static void sum(int[] arr) {
        int sum = 0;
        for (int x : arr) {
            sum += x;
        }
    }

    public static void printArray(int[] arr) {
        for (int x : arr) {
            System.out.print(x + " ");
        }
    }

    public static void transform(int[] arr) {
        for (int i = 0; i < arr.length; i++) {
            arr[i] *= 2;
        }
        for (int x : arr) {
            System.out.print(x + " ");
        }
    }

    public static void main1(String[] args) {
        int[] arr = new int[100];
        for (int i = 0; i < 100; i++) {
            arr[i] = i + 1;
        }
        for (int x : arr) {
            System.out.print(x + " ");
        }
    }
}
